version 12.1

**********  Profile order diagnostics
**********  Joint test if attribute effects are identical across candidate positions A and B
estimates use m10_poeEDU.ster
est r
*joint test
test 2.education#2.candidate 
test 3.education#2.candidate 
foreach x of numlist 2(1)3 {
lincom `x'.education + `x'.education#1.candidate
lincom `x'.education + `x'.education#2.candidate
}

estimates use m10_poeINC.ster
est r
*joint test
test 2.income#2.candidate 
test 3.income#2.candidate
foreach x of numlist 2(1)3 {
lincom `x'.income + `x'.income#1.candidate
lincom `x'.income + `x'.income#2.candidate
}

estimates use m10_poeCOR.ster
est r
*joint test
test 2.corruption#2.candidate 
test 3.corruption#2.candidate 
foreach x of numlist 2(1)3 {
lincom `x'.corruption + `x'.corruption#1.candidate
lincom `x'.corruption + `x'.corruption#2.candidate
}

estimates use m10_poeTAX.ster
est r
*joint test
test 2.taxspend#2.candidate 
test 3.taxspend#2.candidate 
foreach x of numlist 2(1)3 {
lincom `x'.taxspend + `x'.taxspend#1.candidate
lincom `x'.taxspend + `x'.taxspend#2.candidate
}

estimates use m10_poeSEX.ster
est r
*joint test
test 2.samesex#2.candidate 
test 3.samesex#2.candidate 
foreach x of numlist 2(1)3 {
lincom `x'.samesex + `x'.samesex#1.candidate
lincom `x'.samesex + `x'.samesex#2.candidate
}
